package ToDoItemDemo;

import javafx.scene.layout.Priority;

import java.time.LocalDateTime;

public class TodoItem {
    private String name;
    private Priority priority;
    private LocalDateTime deadline;

    enum Priority{
        High(3), Medium(2), Low(1);
        int value;
        Priority(int value) {
            this.value = value;
        }
    }

    public TodoItem() {
    }

    public TodoItem(String name, Priority priority, LocalDateTime deadline) {
        this.name = name;
        this.priority = priority;
        this.deadline = deadline;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Priority getPriority() {
        return priority;
    }

    public void setPriority(Priority priority) {
        this.priority = priority;
    }

    public LocalDateTime getDeadline() {
        return deadline;
    }

    public void setDeadline(LocalDateTime deadline) {
        this.deadline = deadline;
    }

    public String toString() {
        return "TodoItem{" +
                "name='" + name + '\'' +
                ", priority=" + priority +
                ", deadline=" + deadline +
                '}';
    }
}
